package com.cxc.composite;

import java.util.Arrays;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        String name = "我的收藏";
        Folder folder = new Folder(name);
        AbstractFile f1,f2,f3;
        f1 = new TextFile("test.txt");
        f2 = new ImgFile("23.jpg");
        f3 = new MediaFile("笑傲江湖.mv");
        folder.add(f1);
        folder.add(f2);
        folder.add(f3);
        folder.antivirus();

    }
}
